import { staticRoutes } from '../../router/staticRoutes';
export const SET_COLLAPSED = 'SET_COLLAPSED'
export default {
  state() {
    return {
      isCollapse: false, // 控制菜单展开与折叠
      staticRoutes: staticRoutes
    }
  },

  mutations: {
    [SET_COLLAPSED]: (state: any, isCollapse: false) => {
      state.isCollapse = !(state.isCollapse);
    }
  },
}